proc msg:restart {nick host handle arg} {
  global botnick 

  # if the user is not a bot coadmin
  if {![matchattr $handle m]} {
    putquick "NOTICE $nick :\0034ERROR - Permission Denied."
    return 0
  }

  if {![matchattr $handle A]} {
    putquick "NOTICE $nick :\0034ERROR - You need to authenticate first."           
    putquick "NOTICE $nick :\00312You may authenticate yourself by typing \0033\002/msg $botnick auth <your password>\002"
    return 0
  }

  if {[matchattr $handle D]} {
    putquick "NOTICE $nick :\0034ERROR - Permission Denied - Access Is Disabled."
    return 0
  }

  do_restart $nick $host 
  return 0
}









